package com.hx.order.service;


import com.hx.common.exception.CustomerException;
import com.hx.common.result.PageResult;
import com.hx.order.dto.OrderDto;
import com.hx.order.pojo.Order;

import java.util.*;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String,Object> searchMap);


    public PageResult<Order> findPage(Map<String,Object> searchMap,int page, int size);


    public Order findById(String order_id);

    public void add(Order order);


    public void update(Order order);


    public void delete(String order_id);

    public String createOrder(OrderDto orderDto) throws CustomerException;

    public List<Order> findAppointmentInformation(Long userId);


}
